package com.ruoyi.customer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.customer.domain.TMesCustomer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
/**
 * 客户Mapper接口
 *
 * @author ruoyi
 * @date 2024-05-24
 */
@Mapper
public interface TMesCustomerMapper extends BaseMapper<TMesCustomer> {
    /**
     * 查询客户
     *
     * @param id 客户主键
     * @return 客户
     */
    public TMesCustomer selectTMesCustomerById(Long id);

    /**
     * 查询客户列表
     *
     * @param tMesCustomer 客户
     * @return 客户集合
     */
    public List<TMesCustomer> selectTMesCustomerList(TMesCustomer tMesCustomer);

    /**
     * 新增客户
     *
     * @param tMesCustomer 客户
     * @return 结果
     */

    /**
     * 修改客户
     *
     * @param tMesCustomer 客户
     * @return 结果
     */

    /**
     * 删除客户
     *
     * @param id 客户主键
     * @return 结果
     */
    public int deleteTMesCustomerById(Long id);

    /**
     * 批量删除客户
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTMesCustomerByIds(Long[] ids);

    int getTodayNum(String tbName);

    Long getMaxId(String tbName);
}
